package com.smyk.btchina.adapter

import androidx.fragment.app.Fragment
import androidx.fragment.app.FragmentManager
import androidx.fragment.app.FragmentPagerAdapter

/**
 * @author sam
 */
class MyPagerFragmentAdapter(fm: FragmentManager?, var fragments: List<Fragment>) :
    FragmentPagerAdapter(
        fm!!
    ) {
    override fun getItem(position: Int): Fragment {
        return fragments[position]
    }

    override fun getCount(): Int {
        return fragments.size
    }
    /* @Override
    public CharSequence getPageTitle(int position) {
        return mTitle[position];
    }*/
}